package com.weaver.drools.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the Q_CMN_DEPARTMENT_23 database table.
 * 
 */
@Entity
@Table(name="Q_CMN_DEPARTMENT_23")
public class QCmnDepartment23 implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="Q_CMN_DEPARTMENT_23_DEPARTMENTID_GENERATOR",sequenceName="SE_Q_CMN_DEPARTMENT_23",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="Q_CMN_DEPARTMENT_23_DEPARTMENTID_GENERATOR")
	private Long departmentid;

	private Long datastatusid;

	private Long datatypeid;

	private String departmentaddr;

	private String departmentname;

	private Long departmenttypeid;

	private Long dptsequence;

	private String employeenum;

	private Long inspectiontimes;

	private Long isbusinesworkgroup;

	private Long isdeleted;

	private Long operatepointid;

	private String remark;

	@Column(name="RESERVED_1")
	private String reserved1;

	@Column(name="RESERVED_2")
	private String reserved2;

	@Column(name="RESERVED_3")
	private String reserved3;

	private Long superviseviewtypeid;

	private Long userid;

	//bi-directional many-to-one association to QCmnDepartment23
	@ManyToOne
	@JoinColumn(name="P_DEPARTMENTID")
	private QCmnDepartment23 QCmnDepartment23;

	//bi-directional many-to-one association to QCmnDepartment23
	@OneToMany(mappedBy="QCmnDepartment23")
	private Set<QCmnDepartment23> QCmnDepartment23s;

	public QCmnDepartment23() {
	}

	public Long getDepartmentid() {
		return this.departmentid;
	}

	public void setDepartmentid(Long departmentid) {
		this.departmentid = departmentid;
	}

	public Long getDatastatusid() {
		return this.datastatusid;
	}

	public void setDatastatusid(Long datastatusid) {
		this.datastatusid = datastatusid;
	}

	public Long getDatatypeid() {
		return this.datatypeid;
	}

	public void setDatatypeid(Long datatypeid) {
		this.datatypeid = datatypeid;
	}

	public String getDepartmentaddr() {
		return this.departmentaddr;
	}

	public void setDepartmentaddr(String departmentaddr) {
		this.departmentaddr = departmentaddr;
	}

	public String getDepartmentname() {
		return this.departmentname;
	}

	public void setDepartmentname(String departmentname) {
		this.departmentname = departmentname;
	}

	public Long getDepartmenttypeid() {
		return this.departmenttypeid;
	}

	public void setDepartmenttypeid(Long departmenttypeid) {
		this.departmenttypeid = departmenttypeid;
	}

	public Long getDptsequence() {
		return this.dptsequence;
	}

	public void setDptsequence(Long dptsequence) {
		this.dptsequence = dptsequence;
	}

	public String getEmployeenum() {
		return this.employeenum;
	}

	public void setEmployeenum(String employeenum) {
		this.employeenum = employeenum;
	}

	public Long getInspectiontimes() {
		return this.inspectiontimes;
	}

	public void setInspectiontimes(Long inspectiontimes) {
		this.inspectiontimes = inspectiontimes;
	}

	public Long getIsbusinesworkgroup() {
		return this.isbusinesworkgroup;
	}

	public void setIsbusinesworkgroup(Long isbusinesworkgroup) {
		this.isbusinesworkgroup = isbusinesworkgroup;
	}

	public Long getIsdeleted() {
		return this.isdeleted;
	}

	public void setIsdeleted(Long isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Long getOperatepointid() {
		return this.operatepointid;
	}

	public void setOperatepointid(Long operatepointid) {
		this.operatepointid = operatepointid;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getReserved1() {
		return this.reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return this.reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	public String getReserved3() {
		return this.reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}

	public Long getSuperviseviewtypeid() {
		return this.superviseviewtypeid;
	}

	public void setSuperviseviewtypeid(Long superviseviewtypeid) {
		this.superviseviewtypeid = superviseviewtypeid;
	}

	public Long getUserid() {
		return this.userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public QCmnDepartment23 getQCmnDepartment23() {
		return this.QCmnDepartment23;
	}

	public void setQCmnDepartment23(QCmnDepartment23 QCmnDepartment23) {
		this.QCmnDepartment23 = QCmnDepartment23;
	}

	public Set<QCmnDepartment23> getQCmnDepartment23s() {
		return this.QCmnDepartment23s;
	}

	public void setQCmnDepartment23s(Set<QCmnDepartment23> QCmnDepartment23s) {
		this.QCmnDepartment23s = QCmnDepartment23s;
	}

	public QCmnDepartment23 addQCmnDepartment23(QCmnDepartment23 QCmnDepartment23) {
		getQCmnDepartment23s().add(QCmnDepartment23);
		QCmnDepartment23.setQCmnDepartment23(this);

		return QCmnDepartment23;
	}

	public QCmnDepartment23 removeQCmnDepartment23(QCmnDepartment23 QCmnDepartment23) {
		getQCmnDepartment23s().remove(QCmnDepartment23);
		QCmnDepartment23.setQCmnDepartment23(null);

		return QCmnDepartment23;
	}

}